﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

/// <summary>
/// Summary description for UserSubscriber
/// </summary>
/// 
namespace CE.User
{
    public class UserSubscriber
    {
        public UserSubscriber()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        private Int64 _subscriberid;
        private string _email;
        private DateTime _subscribedate;

        //extra field for future extend
        private string _info1;
        private string _info2;
        private string _info3;
        private string _info4;
        private string _info5;

        public Int64 SubscriberID
        {
            get { return _subscriberid; }
            set { _subscriberid = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public DateTime SubscriberDate
        {
            get { return _subscribedate; }
            set { _subscribedate = value; }
        }

        public string Info1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string Info2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string Info3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public string Info4
        {
            get { return _info4; }
            set { _info4 = value; }
        }

        public string Info5
        {
            get { return _info5; }
            set { _info5 = value; }
        }

        public void ClearFields()
        {
            _subscriberid = 0;
            _email = "";
            _subscribedate = new DateTime(1900, 1, 1);

            _info1 = "";
            _info2 = "";
            _info3 = "";
            _info4 = "";
            _info5 = "";
        }
    }
}